package com.iplatform.file.minio.core;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * minio配置信息
 * @author MrRed
 * @date 2020-10-08
 */
@Data
@Component
@RefreshScope
public class MinioConfig {
    /**
     * minio服务地址
     */
    @Value("${minio.minio-url}")
    private String minioUrl;

    /**
     * accessKey
     */
    @Value("${minio.access-key}")
    private String accessKey;

    /**
     * secretKey
     */
    @Value("${minio.secret-key}")
    private String secretKey;

    /**
     * 默认桶
     */
    @Value("${minio.default-bucket}")
    private String defaultBucket;
}
